const resolveInfoTemplate = `
  <el-card class="box-card">
    <div slot="header" class="clearfix">
      <span>驳回原因</span>
    </div>
    <div>
    <el-form ref="form" label-suffix=":" :model="formData" label-width="0" size="small">
      <el-row>
      <el-col :span="24">
        <el-form-item label="">
          <el-input type="textarea" :disabled="!isDisable" v-model="formData.denyReason" placeholder="请输入驳回信息"></el-input>
        </el-form-item>
      </el-col>
      </el-row>
    </el-form>
    </div>
  </el-card>
`;

Vue.component('app-resolve-info', {
  name: 'app-resolve-info',
  template: resolveInfoTemplate,
  props: ['type', 'from'],
  data() {
    return {
      formData: {
        denyReason: '',
      },
    }
  },
  computed: {
    isDisable() {
      return ['caiwu', 'jiaowu'].includes(this.from);
    },
  },
  methods: {

  }
});